import Layout from "@/layout";

const socialRouter = [
  {
    path: "/operator",
    component: Layout,
    redirect: "noRedirect",
    name: "operator",
    meta: { title: "运营方管理", icon: "system-settings" },
    children: [
      {
        path: "operator-management",
        name: "operatorManagement",
        component: () => import("@/views/social-manage/social/operator-management/index"),
        meta: { title: "运营方管理", icon: "agricultural-type-management" },
      },
    ]
  },
  {
    path: "/service",
    component: Layout,
    redirect: "noRedirect",
    name: "service",
    meta: { title: "服务信息管理", icon: "system-settings" },
    children: [
      {
        path: "service-type-management",
        name: "serviceTypeManagement",
        component: () => import("@/views/social-manage/social/service-type-management/index"),
        meta: { title: "服务分类管理", icon: "agricultural-type-management" },
      },
      {
        path: "project-management",
        name: "projectManagement",
        component: () => import("@/views/social-manage/social/project-management/index"),
        meta: { title: "服务项目管理", icon: "agricultural-type-management" },
      },
    ]
  },
  {
    path: "/Social",
    component: Layout,
    redirect: "noRedirect",
    name: "Social",
    meta: { title: "流程管理", icon: "system-settings" },
    children: [
      {
        path: "model-management",
        name: "modelManagement",
        component: () => import("@/views/social-manage/process-management/model-management/index"),
        meta: { title: "模型管理", icon: "agricultural-type-management" },
      },
      {
        path: "arrange-management",
        name: "arrangeManagement",
        // component: () => import("@/views/social-manage/process-management/model-management/index"),
        component: () => import("@/views/social-manage/process-management/arrange-management/index"),
        meta: { title: "部署管理", icon: "agricultural-type-management" },
      },
    ]
  },
  {
    path: "/process",
    component: Layout,
    redirect: "noRedirect",
    name: "process",
    meta: { title: "流程监控", icon: "system-settings" },
    children: [
      {
        path: "process-instance",
        name: "processInstance",
        component: () => import("@/views/social-manage/process-monitor/process-instance/index"),
        meta: { title: "流程实例", icon: "agricultural-type-management" },
      },
      {
        path: "execute-instance",
        name: "executeInst",
        component: () => import("@/views/social-manage/process-monitor/execution-instance/index"),
        meta: { title: "执行实例", icon: "agricultural-type-management" },
      },
      {
        path: "operation-history",
        name: "operationHistory",
        component: () => import("@/views/social-manage/process-monitor/operation-history/index"),
        meta: { title: "运行历史", icon: "agricultural-type-management" },
      },
    ]
  },
  {
    path: "/logmanagement",
    component: Layout,
    redirect: "noRedirect",
    name: "logmanagement",
    meta: { title: "日志管理", icon: "system-settings" },
    children: [
      {
        path: "execute-instance",
        name: "executeInstance",
        component: () => import("@/views/social-manage/log-management/operate-log/index"),
        meta: { title: "操作日志", icon: "agricultural-type-management" },
      },
      {
        path: "process-instance",
        name: "processInst",
        component: () => import("@/views/social-manage/log-management/login-log/index"),
        meta: { title: "登录日志", icon: "agricultural-type-management" },
      }
    ]
  },
  { path: "*", redirect: "/404", hidden: true }
]

export default socialRouter;
